#
# see more: http://www.mchange.com/projects/c3p0/#configuration_properties
#

# \u521d\u59cb\u8fde\u63a5\u6c60\u5927\u5c0f
c3p0.initialPoolSize=10

# \u8fde\u63a5\u6c60\u6700\u5c0f\u8fde\u63a5\u6570
c3p0.minPoolSize=10

# \u8fde\u63a5\u6c60\u6700\u5927\u8fde\u63a5\u6570
c3p0.maxPoolSize=30

# \u6700\u5927\u7a7a\u95f2\u65f6\u95f4, XX\u79d2\u5185\u672a\u4f7f\u7528\u5219\u8fde\u63a5\u88ab\u4e22\u5f03, \u82e5\u4e3a0\u5219\u6c38\u4e0d\u4e22\u5f03\u3002 Default: 0
c3p0.maxIdleTime=180

#c3p0.maxIdleTimeExcessConnections=0

# JDBC\u7684\u6807\u51c6\u53c2\u6570\uff0c\u7528\u4ee5\u63a7\u5236\u6570\u636e\u6e90\u5185\u52a0\u8f7d\u7684PreparedStatements\u6570\u91cf, \u7531\u4e8e\u9884\u7f13\u5b58\u7684statements\u5c5e\u4e8e\u5355\u4e2aconnection\u800c\u4e0d\u662f\u6574\u4e2a\u8fde\u63a5\u6c60, \u6240\u4ee5\u8bbe\u7f6e\u8fd9\u4e2a\u53c2\u6570\u9700\u8981\u8003\u8651\u5230\u591a\u65b9\u9762\u7684\u56e0\u7d20\u3002 
# \u5982\u679cmaxStatements\u4e0emaxStatementsPerConnection\u5747\u4e3a0\uff0c\u5219\u7f13\u5b58\u88ab\u5173\u95ed\u3002Default: 0
#c3p0.maxStatements=0

# \u5b9a\u4e49\u4e86\u8fde\u63a5\u6c60\u5185\u5355\u4e2a\u8fde\u63a5\u6240\u62e5\u6709\u7684\u6700\u5927\u7f13\u5b58statements\u6570\u3002Default: 0
#c3p0.maxStatementsPerConnection=0

# \u5f53\u8fde\u63a5\u6c60\u4e2d\u7684\u8fde\u63a5\u8017\u5c3d\u7684\u65f6\u5019c3p0\u4e00\u6b21\u540c\u65f6\u83b7\u53d6\u7684\u8fde\u63a5\u6570\u3002Default: 3
#c3p0.acquireIncrement=3

# \u5b9a\u4e49\u5728\u4ece\u6570\u636e\u5e93\u83b7\u53d6\u65b0\u8fde\u63a5\u5931\u8d25\u540e\u91cd\u590d\u5c1d\u8bd5\u7684\u6b21\u6570\u3002Default: 30
#c3p0.acquireRetryAttempts=30

# \u4e24\u6b21\u8fde\u63a5\u4e2d\u95f4\u9694\u65f6\u95f4\uff0c\u5355\u4f4d\u6beb\u79d2\u3002Default: 1000
#c3p0.acquireRetryDelay=1000

# \u8fde\u63a5\u5173\u95ed\u65f6\u9ed8\u8ba4\u5c06\u6240\u6709\u672a\u63d0\u4ea4\u7684\u64cd\u4f5c\u56de\u6eda\u3002Default: false
#c3p0.autoCommitOnClose=false

# \u83b7\u53d6\u8fde\u63a5\u5931\u8d25\u5c06\u4f1a\u5f15\u8d77\u6240\u6709\u7b49\u5f85\u8fde\u63a5\u6c60\u6765\u83b7\u53d6\u8fde\u63a5\u7684\u7ebf\u7a0b\u629b\u51fa\u5f02\u5e38, \u4f46\u662f\u6570\u636e\u6e90\u4ecd\u6709\u6548\u4fdd\u7559, \u5e76\u5728\u4e0b\u6b21\u8c03\u7528getConnection()\u7684\u65f6\u5019\u7ee7\u7eed\u5c1d\u8bd5\u83b7\u53d6\u8fde\u63a5\u3002
# \u5982\u679c\u8bbe\u4e3atrue, \u90a3\u4e48\u5728\u5c1d\u8bd5\u83b7\u53d6\u8fde\u63a5\u5931\u8d25\u540e\u8be5\u6570\u636e\u6e90\u5c06\u7533\u660e\u5df2\u65ad\u5f00\u5e76\u6c38\u4e45\u5173\u95ed\u3002Default: false
#c3p0.breakAfterAcquireFailure=false

# \u5f53\u8fde\u63a5\u6c60\u7528\u5b8c\u65f6\u5ba2\u6237\u7aef\u8c03\u7528getConnection()\u540e\u7b49\u5f85\u83b7\u53d6\u65b0\u8fde\u63a5\u7684\u65f6\u95f4, \u8d85\u65f6\u540e\u5c06\u629b\u51faSQLException, \u5982\u8bbe\u4e3a0\u5219\u65e0\u9650\u671f\u7b49\u5f85, \u5355\u4f4d\u6beb\u79d2\u3002Default: 0
#c3p0.checkoutTimeout=60000

# c3p0\u662f\u5f02\u6b65\u64cd\u4f5c\u7684, \u7f13\u6162\u7684JDBC\u64cd\u4f5c\u901a\u8fc7\u5e2e\u52a9\u8fdb\u7a0b\u5b8c\u6210, \u6269\u5c55\u8fd9\u4e9b\u64cd\u4f5c\u53ef\u4ee5\u6709\u6548\u7684\u63d0\u5347\u6027\u80fd \u901a\u8fc7\u591a\u7ebf\u7a0b\u5b9e\u73b0\u591a\u4e2a\u64cd\u4f5c\u540c\u65f6\u88ab\u6267\u884c\u3002Default: 3
#c3p0.numHelperThreads=3

# \u6bcfXX\u79d2\u68c0\u67e5\u6240\u6709\u8fde\u63a5\u6c60\u4e2d\u7684\u7a7a\u95f2\u8fde\u63a5\u3002Default: 0
c3p0.idleConnectionTestPeriod=180

# \u5982\u679c\u8bbe\u4e3atrue\u90a3\u4e48\u5728\u53d6\u5f97\u8fde\u63a5\u7684\u540c\u65f6\u5c06\u6821\u9a8c\u8fde\u63a5\u7684\u6709\u6548\u6027\u3002Default: false
c3p0.testConnectionOnCheckin=true

# \u56e0\u6027\u80fd\u6d88\u8017\u5927\u8bf7\u53ea\u5728\u9700\u8981\u7684\u65f6\u5019\u4f7f\u7528\u5b83\u3002\u5982\u679c\u8bbe\u4e3atrue\u90a3\u4e48\u5728\u6bcf\u4e2aconnection\u63d0\u4ea4\u7684\u65f6\u5019\u90fd\u5c06\u6821\u9a8c\u5176\u6709\u6548\u6027\u3002
# \u5efa\u8bae\u4f7f\u7528idleConnectionTestPeriod\u6216automaticTestTable\u7b49\u65b9\u6cd5\u6765\u63d0\u5347\u8fde\u63a5\u6d4b\u8bd5\u7684\u6027\u80fd\u3002Default: false
#c3p0.testConnectionOnCheckout=false

#
# Configuration logging:
# see more: http://www.mchange.com/projects/c3p0/#configuring_logging
#

# Acceptable: log4j/slf4j/jul, jdk14, java.util.logging/fallback
#com.mchange.v2.log.MLog=log4j

#com.mchange.v2.log.NameTransformer=com.mchange.v2.log.PackageNames

# Acceptable: OFF/SEVERE/WARNING/INFO/CONFIG/FINE/FINER/FINEST/ALL
com.mchange.v2.log.FallbackMLog.DEFAULT_CUTOFF_LEVEL=ALL

# 
com.mchange.v2.log.jdk14logging.suppressStackWalk=false
